﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tenmah.DataAccess
{
    public interface IDbAdapter
    {
        void AddUserToRole(string username, string rolename);
        void CreateRole(string rolename);
        bool DeleteRole(string rolename);
        string[] GetAllRoles();
        string[] GetRolesForUser(string username);
        string[] GetUsersInRole(string roleName);
        bool IsUserInRole(string username, string rolename);
        void RemoveUserFromRole(string username, string rolename);
        bool RoleExists(string rolename);
        string[] FindUsersInRole(string roleName, string usernameToMatch);
    }
}
